home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / wincap.zip / ERRORS.H < prev    next >
Text File  |  1991-11-05  |  2KB  |  34 lines

  1. /* Header file for errors.c */
  2. /* Copyright (c) 1991 Microsoft Corporation. All rights reserved. */
  3.  
  4. enum {
  5.       ERR_MIN = 0,                     // All error #s >= this value
  6.       ERR_NOT_DIB = 0,                 // Tried to load a file, NOT a DIB!
  7.       ERR_MEMORY,                      // Not enough memory!
  8.       ERR_READ,                        // Error reading file!
  9.       ERR_LOCK,                        // Error on a GlobalLock()!
  10.       ERR_OPEN,                        // Error opening a file!
  11.       ERR_CREATEPAL,                   // Error creating palette.
  12.       ERR_GETDC,                       // Couldn't get a DC.
  13.       ERR_CREATEDDB,                   // Error create a DDB.
  14.       ERR_STRETCHBLT,                  // StretchBlt() returned failure.
  15.       ERR_STRETCHDIBITS,               // StretchDIBits() returned failure.
  16.       ERR_SETDIBITSTODEVICE,           // SetDIBitsToDevice() failed.
  17.       ERR_STARTDOC,                    // Error calling StartDoc().
  18.       ERR_NOGDIMODULE,                 // Couldn't find GDI module in memory.
  19.       ERR_SETABORTPROC,                // Error calling SetAbortProc().
  20.       ERR_STARTPAGE,                   // Error calling StartPage().
  21.       ERR_NEWFRAME,                    // Error calling NEWFRAME escape.
  22.       ERR_ENDPAGE,                     // Error calling EndPage().
  23.       ERR_ENDDOC,                      // Error calling EndDoc().
  24.       ERR_SETDIBITS,                   // Error calling SetDIBits().
  25.       ERR_FILENOTFOUND,                // Error opening file in GetDib()
  26.       ERR_INVALIDHANDLE,               // Invalid Handle
  27.       ERR_DIBFUNCTION,                 // Error on call to DIB function
  28.       ERR_MAX                          // All error #s < this value
  29.      };
  30.  
  31.  
  32. void DIBError (int ErrNo);
  33.  
  34.